package esb.chapter5.transformation.camel;

import javax.xml.transform.dom.DOMSource;

import org.apache.camel.builder.RouteBuilder;

public class ConvertRouter extends RouteBuilder {
	
	private final static String NAMESPACE = "http://esbinaction.com/weather";
	private final static String SERVICE_IN = "jbi:service:" + 
		NAMESPACE + "/convertDSLRouter";
	
	public void configure() {
		from(SERVICE_IN)
			.convertBodyTo(DOMSource.class)
			.process(new ConvertProcessor());
	}

}
